<div id="search_geostamp_block">
<input name="search geostamps" id="search_geostamps" value="<?php echo $criteria; ?>"/>
<input type=button value="Search" onclick="search_geostamps_button_pressed();"/>
Example: 'Oulu,FI', 'New York, US', 'country: United'
</div>
<div id="search_taggeostamps_results">
<?php if($criteria) { ?>
Search results for <?php echo $criteria; ?>:
<?php } else { ?>
<?php } ?>
<table><tr><td>
<?php
$counter = 0;
foreach($geostamps as $geostamp)
{
	echo '<a href="javascript:addThisGeostamp('.$geostamp->geonameid.')">'.$this->geodata->show($geostamp, true).'</a>';
	echo '</td>';
	$counter++;
	if(!($counter % 4))
	{
		echo '</tr><tr>';
	}
	echo '<td>';
} 
?>
</td></tr></table>
</div>
<?php if(false && $show_all_available) { ?>
<input type=button value="Show all results" onclick="search_geostamps( <?php echo $criteria; ?>, true);"/>
<?php } ?>
<input type=button id="geostamps_results_previous" value="Previous results" onclick="search_geostamps(<?php echo  "'".$criteria."', false, ". ($offset-20); ?>);" <?php if($offset < 20) echo 'disabled="disabled"'; ?>/>
<input type=button id="geostamps_results_next" value="Next results" onclick="search_geostamps(<?php echo  "'".$criteria."', false, ". ($offset+20); ?>);" <?php if(count($geostamps) < 20) echo 'disabled="disabled"'; ?>/>
<input type=button value="Cancel" onclick="cancel_popup_dlg();"/>
